fn main() {
	// two fields control the size of an array
	//     len: length - the number of pre-allocated and initialized elements in the array
	//     cap: capacity - the amount of memory space which has been reserved for elements
	//    data: a field of type voidptr with the address of the first element, for low-level unsafe code
	// the fields are read-only and can't be modified by the user
	mut nums := [1, 2, 3]
	println(nums.len)     // "3"
	println(nums.cap)     // "3" or greater
	nums = []             // The array is now empty
	println(nums.len)     // "0"
}
